import { LocalStorage } from "quasar";

export const getSelectedComponents = state => {
  return state.selectedComponents;
};

export const getShopNumber = state => {
  if (!state.shopNumber) {
    state.shopNumber = LocalStorage.getItem("$shopNumber");
  }
  console.log("state.shopNumber :", state.shopNumber);
  return state.shopNumber;
};
export const getShopInfo = state => {
  if (state.shopInfo == null) {
    state.shopInfo = LocalStorage.getItem("$shopInfo");
  }
  return state.shopInfo;
};
